package utils.message.rest;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import utils.message.Message;

public class HandlePing {

    @POST
    @Path("/ping")
    @Consumes(MediaType.APPLICATION_JSON)
    public Response ackPing(Message message) {
        String result = "message received";
        return Response.status(201).entity(result).build();
    }
}
